import Vue from 'vue'
import App from './App'
import store from './store'
import { Request, formatImage, Upimg, Upvideo, getPageContent, clearHtml, judgeQx, pushMsg, WxMiniprogramPay, WeChatprogramPay, IosprogramPay, AlipayprogramPay, HOST_URL } from './common/config.js'

Vue.prototype.$Request = Request
Vue.prototype.$Upimg = Upimg
Vue.prototype.$judgeQx = judgeQx
Vue.prototype.$clearHtml = clearHtml
Vue.prototype.$pushMsg = pushMsg
Vue.prototype.$Upvideo = Upvideo
Vue.prototype.$WxMiniprogramPay = WxMiniprogramPay
Vue.prototype.$WeChatprogramPay = WeChatprogramPay
Vue.prototype.$IosprogramPay = IosprogramPay
Vue.prototype.$AlipayprogramPay = AlipayprogramPay
Vue.prototype.$getPageContent = getPageContent
Vue.prototype.$formatImage = formatImage
Vue.prototype.$HOSTURL = HOST_URL
Vue.prototype.$store = store

Vue.config.productionTip = false

App.mpType = 'app'
Vue.filter('formatImage',(val)=>{
	return formatImage(val)
})
Vue.filter('clearHtml',(val)=>{
	return clearHtml(val)
})
// 引入全局uView
// 公共域名挂载原型链
Vue.prototype.global = {
	url: 'https://jiaoyou2.10pay.cn/',
	
}
import uView from 'uview-ui'
Vue.use(uView);

const app = new Vue({
	store,
    ...App
})

app.$mount()
